import {API} from '@/api/index'

export const queryProgramApi = (projectName, projectStartTime) => {
    return API('/project/queryProject', {projectName, projectStartTime}, 'POST', "")
}

export const addProgramApi = (projectInfo, projectMembers, projectSchedules) => {
    return API('/project/addProjectInfo', {projectInfo, projectMembers, projectSchedules}, "POST", '')
}

export const deleteProgramApi = (projectId, isRole) => {
    return API('/project/deleteProject/' + projectId + '/' + isRole, {}, "DELETE", '')
}